import time

# 方法1
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.remote.switch_to import SwitchTo

# 引入action chains
from selenium.webdriver.common.action_chains import ActionChains

options = webdriver.ChromeOptions()
user_ag = (
    "MQQBrowser/26 Mozilla/5.0 (Linux; U; Android 2.3.7; zh-cn; MB200 Build/GRJ22; "
    + "CyanogenMod-7) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
)
options.add_argument("user-agent=%s" % user_ag)

wd = webdriver.Chrome(service=Service(".\chromedriver_win136.exe"), options=options)

wd.get("http://www.ctrip.com")

time.sleep(113)
